/*
 * Copyright(c) 2012 Donghong Inc.
 */
package com.hatic.check;

import java.util.List;
import java.util.Map;

import org.jxstar.dao.BaseDao;
import org.jxstar.dao.DaoParam;
import org.jxstar.wf.engine.AssignCustom;
import org.jxstar.wf.engine.TaskInstance;

/**
 * 自定义找人节点。
 *
 * @author TonyTan
 * @version 1.0, 2012-2-21
 */
public class CheckMan implements AssignCustom {

	/* (non-Javadoc)
	 * @see org.jxstar.wf.engine.AssignCustom#getAssignUser(org.jxstar.wf.engine.TaskInstance)
	 */
	public List<Map<String, String>> getAssignUser(TaskInstance task) {
		BaseDao dao = BaseDao.getInstance();
		String dataId = task.getDataId();
		//查找竞争性谈判小组人员
		String sql = "select user_id, user_name from pur_say_teamdet where say_chkid = ?";
		DaoParam param = dao.createParam(sql);
		param.addStringValue(dataId);
		return dao.query(param);
	}

}
